03. Probability Quiz
Probability Quiz
In this quiz, you will simulate coin flips and die rolls to compute proportions for the following outcomes.
- Two fair coin flips produce exactly two heads
- Three fair coin flips produce exactly one head
- Three biased coin flips with P(H) = 0.6 produce exactly one head
- A die rolls an even number
- Two dice roll a double
Then, you'll compare these proportions with probabilities in the quizzes below.
When simulating coin flips, use 0 to represent heads and 1 to represent tails. When simulating die rolls, use the correct integers to match the numbers on the sides of a standard 6 sided die.
Also, notice that you can look at the solutions if you get stuck by clicking the orange button in the top left or check the solution link at the bottom of the page.
Workspace
This section contains either a workspace (it can be a Jupyter Notebook workspace or an online code editor work space, etc.) and it cannot be automatically downloaded to be generated here. Please access the classroom with your account and manually download the workspace to your local machine. Note that for some courses, Udacity upload the workspace files onto https://github.com/udacity , so you may be able to download them there.
Workspace Information:
- Default file path:
- Workspace type: jupyter
- Opened files (when workspace is loaded): n/a
QUIZ QUESTION: :
Use the proportions you observed in your simulation data in order to guess the probabilities of the following outcomes.
ANSWER CHOICES:
Outcome |
Probability |
---|---|
0.083 |
|
0.75 |
|
0.167 |
|
0.288 |
|
0 |
|
0.5 |
|
0.333 |
|
0.25 |
|
0.375 |
|
0.6 |
|
1 |
SOLUTION:
Outcome |
Probability |
---|---|
0.167 |
|
0.288 |
|
0.5 |
|
0.25 |
|
0.375 |